<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>广告主自助后台</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="tray" class="box">
    <p class="f-left box">
    <p class="f-right">帐 号: <strong><a href="#">${aduser.username }</a></strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><a href="logout" id="logout">登 出</a></strong></p>
</div>
<div id="cols">
    <div class="sliderbar">
      <div><img src="css/images/logo.png" /></div>
      <ul class="box">
        <li <c:if test="${channel=='list'}">id="submenu-active"</c:if>>
        <a href="s_applist">应用列表</a>
        </li>
        <li <c:if test="${channel=='addapp'}">id="submenu-active"</c:if>>
        <a href="s_addapp">添加应用</a>
        </li>
        <li <c:if test="${channel=='advlist'}">id="submenu-active"</c:if>>
        <a href="s_advlist">广告主列表</a>
        </li>
        <li <c:if test="${channel=='addadv'}">id="submenu-active"</c:if>>
        <a href="s_addadv">添加广告主</a>
        </li>
        <li <c:if test="${channel=='account'}">id="submenu-active"</c:if>>
        <a href="#">账户管理</a>
        </li>
        <li <c:if test="${channel=='help'}">id="submenu-active"</c:if>>
        <a href="#">帮助</a>
        </li>
      </ul>
    </div>
    <div class="content">
    	<h1>推广应用列表</h1>
        <table width="100%">
        <tbody><tr>
          <th>应用名称</th>
          <th>版本</th>
          <th>余额</th>
          <th>激活单价（元）</th>
          <th>体验单价（元）</th> 
          <th>状态</th> 
          <th>充值</th> 
          <th>操作</th> 
        </tr>
        <c:forEach items="${applist}" var="item" varStatus="status">
        <tr <c:if test="${status.count%2==0}">class="bg"</c:if>>
          <td>${item.appname}</td>
          <td>${item.version}</td>
          <td>${item.rest_total}</td>
          <td>${item.downloadFee}</td>
          <td>${item.longtimeuserFee}</td>
          <td>${item.status}</td>
          <td><a href="gotoalipay?appid=${item.id}">充值</a></td>
          <td><a href="s_gotoupdate?packagename=${item.packagename}">修改</a></td>
        </tr>
        </c:forEach>
      </tbody></table>
    </div>
</div>
<div id="footer" class="box">
    <p class="f-left">© 2009 <a href="#">Your Company</a>, All Rights Reserved ®</p>
    <p class="f-right">Powerd by <a href="#" >招财猫</a></p>
  </div>
</body>
</html>